-- GENERATED SPELL FOR [Chained Abomination] --


function spell0_30689(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30689', 518, 1)
end

function spell1_30689(pUnit, Event) --@Scourge Hook,n/a--
pUnit:FullCastSpellOnTarget(50335,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30689', 1000, 1)
end

function Sorts_30689(pUnit, Event)
local choix_sorts_30689 = math.random(0, 1)
if choix_sorts_30689 == 0 then
pUnit:RegisterEvent('spell0_30689', 1, 1)
end
if choix_sorts_30689 == 1 then
pUnit:RegisterEvent('spell1_30689', 1, 1)
end
end

function mob30689_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30689', math.random(1500, 3000), 1)
end

function mob30689_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30689_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30689_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30689, 1, 'mob30689_Action')
RegisterUnitEvent(30689, 2, 'mob30689_Leave')
RegisterUnitEvent(30689, 3, 'mob30689_Kill')
RegisterUnitEvent(30689, 4, 'mob30689_Die')
